var name = "window";
var obj = {
    name: "my window",
    getnameFUN: function() {
        return function() {
            return this.name;
        };
    }
}
console.log(obj.getnameFUN()());